home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / FAQs / SGIfaqs / SGI-Movie-faq < prev    next >
Encoding:
Text File  |  1996-11-11  |  42.4 KB  |  1,090 lines

  1.  
  2. From: sgi-faq@viz.tamu.edu (The SGI FAQ group)
  3. Newsgroups: comp.sys.sgi.misc,comp.answers,news.answers
  4. Subject: SGI movie Frequently Asked Questions (FAQ)
  5. Supersedes: <movie_786697207@viz.tamu.edu>
  6. Followup-To: comp.sys.sgi.misc
  7. Date: 20 Dec 1994 06:57:46 GMT
  8. Organization: Visualization Lab, Texas A&M University
  9. Lines: 1071
  10. Approved: news-answers-request@mit.edu
  11. Expires: 17 Jan 1995 07:00:07 GMT
  12. Message-ID: <movie_787906807@viz.tamu.edu>
  13. Reply-To: sgi-faq@viz.tamu.edu (The SGI FAQ group)
  14. NNTP-Posting-Host: viz.tamu.edu
  15. Originator: sgi-faq@viz
  16.  
  17. Archive-name: sgi/faq/movie
  18. Last-modified: Sat Dec 17 12:14:19 CST 1994
  19.  
  20.     SGI movie Frequently Asked Questions (FAQ)
  21.  
  22. This is one of the Silicon Graphics FAQ series, which consists of:
  23.  
  24.     SGI admin FAQ - IRIX system administration
  25.     SGI apps FAQ - Applications and miscellaneous programming
  26.     SGI audio FAQ - Audio applications and programming
  27.     SGI graphics FAQ - Graphics and user environment customization
  28.     SGI hardware FAQ - Hardware
  29.     SGI impressario FAQ - IRIS Impressario
  30.     SGI inventor FAQ - IRIS Inventor
  31.     SGI misc FAQ - Introduction & miscellaneous information
  32.     SGI movie FAQ - Movies
  33.     SGI performer FAQ - IRIS Performer
  34.     SGI pointer FAQ - Pointer to the other FAQs
  35.  
  36. Read the misc FAQ for information about the FAQs themselves.  Each FAQ
  37. is posted to comp.sys.sgi.misc and to the news.answers and comp.answers
  38. newsgroups (whose purpose is to store FAQs) twice per month.  If you
  39. can't find one of the FAQs with your news program, you can get it by
  40. anonymous FTP from one of these sites:
  41.  
  42.     viz.tamu.edu:/pub/sgi/faq/
  43.     rtfm.mit.edu:/pub/usenet/news.answers/sgi/faq/
  44.     ftp.uu.net:/usenet/news.answers/sgi/faq/
  45.  
  46. Note that rtfm.mit.edu is home to many other FAQs and informational
  47. documents, and is a good place to look if you can't find an answer here.
  48. If you can't use FTP, send mail to mail-server@rtfm.mit.edu with the
  49. word 'help' on a line by itself in the text, and it will send you a
  50. document describing how to get files from rtfm.mit.edu by mail. Send the
  51. command 'send usenet/news.answers/sgi/faq/misc' to get the SGI misc FAQ,
  52. and similarly for the other FAQs. Finally, the FAQs are on the World
  53. Wide Web at
  54.  
  55.     http://www.cis.ohio-state.edu/hypertext/faq/usenet/sgi/top.html
  56.  
  57. The SGI FAQs are freely distributable and we encourage wide circulation.
  58. You MUST keep the FAQs intact, including headers and this notice.  The
  59. contents are accurate as far as we know, but the usual disclaimers
  60. apply. (In particular, copies of the SGI FAQs published on paper or
  61. CD-ROM are certain to be out of date!) Please send additions and changes
  62. to sgi-faq@viz.tamu.edu.
  63.  
  64. Topics covered in this FAQ:
  65. ---------------------------
  66.    -1- Is there a QuickTime movieplayer available for SGI (IRIX
  67.        4.0.5F)???
  68.    -2- I cannot play a QuickTime movie on my Silicon Graphics computer.
  69.        How can I make it work?
  70.    -3- I cannot play a QuickTime movie created on a Silicon Graphics
  71.        computer on my Macintosh.  How can I make it work?
  72.    -4- What version of QuickTime does Silicon Graphics support?
  73.    -5- How can I create a QuickTime file on an SGI?
  74.    -6- I need to play MPEG movies.  Does SGI offer MPEG support?
  75.    -7- I created a movie with Capture, but now I can't edit it with
  76.        Movie Maker or play it with Movie Player.
  77.    -8- How can I write a program to create, edit, convert, or play
  78.        movies?  Where can I get a copy of the SGI Movie Library?
  79.    -9- I can't use images exported with Moviemaker in any of my
  80.        applications.  What image format does Moviemaker use?
  81.   -10- Can anyone provide details on the SGI movie format?
  82.   -11- Can anyone provide details on the QuickTime movie format?
  83.   -12- How can I convert from SGI movie format to MPEG?
  84.   -13- How can I convert from Microsoft AVI movie format to SGI movie
  85.        format?
  86.   -14- Is there a way to bring up a movie (using movieplayer) within
  87.        Showcase using a button click...and having it place itself
  88.        automatically in a certain location and start?
  89.   -15- I am using Mosaic.  When I try to view a movie, movieplayer
  90.        starts, but then shows a message: no movie.  How can I make it
  91.        work?
  92.   -16- I have the Galileo (or Indy Video) option, but I can't get
  93.        Capture to use it.  When I run it, the IndyCam shows up.  What do
  94.        I do?
  95.   -17- I cannot get the right video to show in the Capture tool! I get
  96.        the a video input other than the one I want or the screen is
  97.        black.  What do I do?
  98.   -18- Why does Capture tell me to "Please Stand By", instead of
  99.        capturing video?
  100.   -19- Capture just grabbed a file for me, but now I can't find it.
  101.        Where did Capture hide it?
  102.   -20- Under IRIX 5.3, my system has a video board and/or IndyCam, but
  103.        Capture won't let me use it.  It just greys out the video options
  104.        on its menu.  How can I make it work?
  105.   -21- I created a movie with audio using makemovie, but the soundtrack
  106.        plays back really garbled and choppy.  What do I do?
  107.   -22- Does anyone know the maximum size a movie file that MovieMaker or
  108.        MoviePlayer can handle?  Is it limited by free memory, or will it
  109.        play from the hard drive?
  110.   -23- How do I write a program to access the pixels of a video frame in
  111.        a movie file for image processing purposes?
  112.   -24- How do I write a program which can write individual frames from a
  113.        movie file out to a still image file?
  114.   -25- I'm using the Movie Library to create QuickTime movies using
  115.        Apple's Video compression.  When are default key-frames placed in
  116.        a QuickTime movie made with the SGI movie library?
  117.   -26- The Movie Library has calls to play a movie in a file, memory or
  118.        a file descriptor.  But all of them seem to assume that the
  119.        complete movie is available locally.  How can I play a movie all
  120.        of which is not available locally?
  121.   -27- When programming with the Movie Library, can we insert and delete
  122.        frames from a playing movie?
  123.   -28- When writing frames to a movie with the Movie Library, if we fix
  124.        the image track parameters, does the byte size of the frame
  125.        remain constant across frames?
  126.   -29- How do I write a program to play a movie entirely from memory?
  127.   -30- How do I capture movies from live video within my application?
  128.   -31- How do I write a program to read and write compressed data to a
  129.        movie file?
  130.   -32- I want to write a program which creates a JPEG-compressed movie
  131.        file, but I need to control the compression quality.  How do I do
  132.        this with the Movie Library?
  133.   -33- I want to write a program which can create a JPEG-compressed
  134.        movie file compatible with the Cosmo Compress board, SGI's
  135.        hardware JPEG accelerator.  How do I do this?
  136.   -34- I simply want to create a JPEG-compressed movie which is
  137.        compatible with the Cosmo Compress board.  I don't want to write
  138.        my own program.  How do I do this?
  139.  
  140. ----------------------------------------------------------------------
  141.  
  142. Subject:    -1- Is there a QuickTime movieplayer available for SGI (IRIX
  143.                 4.0.5F)???
  144. Date: Tue Nov 15 15:00:28 PST 1994
  145.  
  146.   SGI provides QuickTime movie support as part of Movieplayer in IRIX
  147.   5.1 and later.  If you can't or don't wish to upgrade, you may wish
  148.   to investigate a public domain program called Xanim which offers
  149.   Quicktime capability.
  150.  
  151.   The latest version of XAnim is 2.68.3 and is available from the
  152.   following location:
  153.  
  154.   ftp://export.lcs.mit.edu/contrib/applications/xanim2683.README
  155.   ftp://export.lcs.mit.edu/contrib/applications/xanim2683.tar.Z
  156.   
  157.   Version 2.68.3 does not support audio, but apparently this feature
  158.   is in the works. 
  159.   
  160.   If you are running IRIX 4.0.5 (any variant) or earlier, please
  161.   consider upgrading to IRIX 5.3 (available December 1993 or January
  162.   1994).  It contains a more full-featured set of movie tools
  163.   bundled with the system.
  164.  
  165. ------------------------------
  166.  
  167. Subject:    -2- I cannot play a QuickTime movie on my Silicon Graphics
  168.                 computer. How can I make it work?
  169. Date: Tue Nov 15 15:04:39 PST 1994
  170.  
  171.   Here is a checklist of things to try:
  172.  
  173.   - You should be using the 5.2 MR version of the OS or later.
  174.  
  175.   - The QT movie must be "flattened".  Use the Apple Movie Converter
  176.     program and choose BOTH "Make playable on non-Apple systems" and
  177.     "Make self-contained" in the Save As dialog.  The file must
  178.     also be compressed with an algorithm we support.  For example,
  179.     do not choose "Cinepak" or "Compact Video".
  180.  
  181.   - Try changing the compression to something else, say "none" to see
  182.     if that may be the problem.
  183.  
  184.   SGI has licensed the QuickTime movie file format and 2 compressors
  185.   from Apple.  As a result, one can display QuickTime movies compressed
  186.   with the RLE or RPZA algorithms (Apple Video and Apple Graphics) with
  187.   the bundled SGI movieplayer. SGI currently does not support Cinepak
  188.   compression.  Also, the SGI movie tools currently do not support
  189.   QuickTime movies which contain an edit list.
  190.  
  191.   Typically, a QuickTime file on the Macintosh stores all of the movie
  192.   parameters and header information in the resource fork, and the
  193.   actual media (sound + video) in the data fork.  To be used on a
  194.   computer which has a conventional file system (such as the Indigo),
  195.   you must first "flatten" the movie on the Macintosh before
  196.   transferring it to the Indigo.  This is what the "Make playable on
  197.   non-Apple systems" option in the Apple Movie Converter does.
  198.  
  199.   The Apple Movie Converter is part of the QuickTime Starter Kit, a
  200.   software package sold by Apple Computer for Macintosh systems.  It is
  201.   available from retail software distributors.
  202.  
  203. ------------------------------
  204.  
  205. Subject:    -3- I cannot play a QuickTime movie created on a Silicon
  206.                 Graphics computer on my Macintosh.  How can I make it
  207.                 work?
  208. Date: Mon Aug 15 11:21:19 PDT 1994
  209.  
  210.   When going from an SGI to a Mac, the file must have a creator and
  211.   file type.  This can be done in "ResEdit".
  212.  
  213.   To move a file to the Mac...
  214.  
  215.   Save the file in a Quicktime format (using quicktime_dev, the
  216.   QuickTime Development option or another tool)
  217.   Move the file to a Mac (using the floptical, or ftp)
  218.  
  219.     NOTE:  If using ftp, make sure the mode is binary, *not* macbinary
  220.  
  221.   Open the Mac program "ResEdit"
  222.   Select "Get File info..." from File menu
  223.   Type "MooV" into file type field, and "TVOD" into creator field
  224.   Close dialog (Choose Yes to save changes)
  225.   Quit "ResEdit"
  226.  
  227.   It should just work from here.
  228.  
  229.   In IRIX 5.3 the file type and creator will be created automatically
  230.   if you drag the file to a Mac volume using the Indigo Magic desktop.
  231.  
  232. ------------------------------
  233.  
  234. Subject:    -4- What version of QuickTime does Silicon Graphics support?
  235. Date: Tue Nov 15 15:13:01 PST 1994
  236.  
  237.   Silicon Graphics does not provide support for the QuickTime
  238.   programming library, but only for the QuickTime file format.
  239.  
  240.   The definition of the QuickTime file format has not changed since its
  241.   original release.  Apple's enhancements have mostly been in the form
  242.   of performance improvements and new features to QuickTime which have
  243.   not changed the basic file format.  So, in some sense SGI supports
  244.   every version of QuickTime.  But to answer the question practically,
  245.   we do not support some features which Apple introduced in later
  246.   releases of QuickTime, such as the Cinepak codec.  Nor do we support
  247.   "non-flattened" movies which contain separate resource and data
  248.   forks.
  249.  
  250. ------------------------------
  251.  
  252. Subject:    -5- How can I create a QuickTime file on an SGI?
  253. Date: Tue Nov 15 15:15:04 PST 1994
  254.  
  255.   SGI does not provide a method to create QuickTime movie files in
  256.   the 5.2 release of the Movie Tools.  If you obtain the
  257.   Digital Media Development Option, together with the QuickTime
  258.   Development option, you can obtain a tool which will create QuickTime
  259.   files on an SGI system.  We are not able to include this tool with
  260.   the basic IRIX distribution due to our licensing agreements with
  261.   Apple Computer.
  262.  
  263.   See elsewhere in this FAQ for more information on both the Digital
  264.   Media Development Option and the QuickTime Developer's Option.
  265.  
  266.   IRIX 5.3 contains a version of Movie Maker which can export to
  267.   the QuickTime file format.
  268.   
  269.   There is a commercially available tool which will allow creation
  270.   of both SGI and QuickTime movies under IRIX 5.2 called Image
  271.   Independence. It is a batch image converter with A GUI and
  272.   command-line versions. It lists for $495, comes with over 20
  273.   image formats, is fast and flexible. It can be purchased from
  274.   Elastic Reality, Inc. at (608) 273-6585.  It can also convert
  275.   movies from one type to another, or split movies into
  276.   separate frames.
  277.  
  278. ------------------------------
  279.  
  280. Subject:    -6- I need to play MPEG movies.  Does SGI offer MPEG
  281.                 support?
  282. Date: Tue Nov 15 15:15:04 PST 1994
  283.  
  284.   The current SGI movieplayer does not support MPEG movies.  Support
  285.   for MPEG playback and file conversion will appear as an optional
  286.   product, shortly after IRIX 5.3 becomes available.
  287.  
  288.   For free, you have several options.
  289.  
  290.   1) You can use the Berkeley mpeg_play. You can get the file
  291.   mpeg_play.Z by anonymous ftp from
  292.  
  293.       ftp://sgigate.sgi.com/pub/Mosaic/mpeg_play.Z
  294.  
  295.   Please use the binary transfer mode to get that file, and then
  296.   enter:
  297.  
  298.       uncompress mpeg_play.Z
  299.  
  300.   to get mpeg_play.  You can use mpeg_play to play MPEG files specified
  301.   in Mosaic documents.
  302.  
  303.   2) Another MPEG player is available via FTP.  Here is its URL:
  304.  
  305.       ftp://geom.umn.edu/priv/daeron/src/mpeg_play-src.tar.Z
  306.  
  307.   This MPEG player has Motif frame controls.
  308.  
  309.   3) You might want to check out sgimpeg, a program based on
  310.   mpeg_play, with all graphics replaced with IrisGL calls.  It also
  311.   features some limited frame controls. The full package, bit, also
  312.   offers conversions of any frames within the MPEG stream to
  313.   jpeg/pnm/rgb and other formats.  Both bit and sgimpeg are available
  314.   from
  315.  
  316.       ftp://monte.svec.uh.edu/pub/bit/
  317.  
  318.   via anonymous ftp.
  319.   
  320.   [ Editors note: at the time of latest revision, sgimpeg was not
  321.     available at this Internet location. ]
  322.     
  323.   4) Here is yet another MPEG player from Greg Ward (greg@pet.mni.mcgill.ca):
  324.  
  325.   I have also written a GL-specific MPEG player -- same general
  326.   idea as sgimpeg, but it has a cruder user interface (all keyboard) and
  327.   a lot more features (memory or disk buffering, pixel doubling/tripling/
  328.   whatever, pause, single step forward or backward).
  329.  
  330.   It's available by anonymous ftp from yorick.mni.mcgill.ca, in /pub/mpeg.
  331.  
  332. ------------------------------
  333.  
  334. Subject:    -7- I created a movie with Capture, but now I can't edit it
  335.                 with Movie Maker or play it with Movie Player.
  336. Date: 20 May 1994 00:00:01 EST
  337.  
  338.   Check to see that you are using compatible versions of the tools.
  339.   Odds are that you created the movie with Capture (an application in
  340.   IRIX 5.1 and later), but are trying to use the tools from an IRIX
  341.   4.0.5 to view and manipulate them.
  342.  
  343.   The IRIX 5.x versions of the movie tools can read files created by
  344.   the 4.0.5 tools, but the reverse is not true.
  345.  
  346. ------------------------------
  347.  
  348. Subject:    -8- How can I write a program to create, edit, convert, or
  349.                 play movies?  Where can I get a copy of the SGI Movie
  350.                 Library?
  351. Date: Wed Nov 16 13:04:20 PST 1994
  352.  
  353.   The Digital Media Development Option contains the Video,
  354.   Audio, Audio File, MIDI, CD, DAT, Movie, and Compression
  355.   Libraries.  It allows you to perform tasks like these
  356.   inside your application:
  357.  
  358.   - perform audio, video, MIDI I/O on SGI machines (including
  359.     programming the IndyCam)
  360.  
  361.   - convert audio/video data between different formats
  362.     (this includes software and hardware
  363.     compression/decompression for audio and video)
  364.  
  365.   - read/write digital media file formats (SGI movie,
  366.     QuickTime, AIFF/AIFF-C sound files)
  367.  
  368.   - read/write DAT audio tapes using SGI SCSI DAT drive, read
  369.     CD audio disks using SGI SCSI CD drive.
  370.  
  371.   The part number for the Digital Media Development Option is
  372.   SC4-DMDEV-2.0.   If you would like to develop applications
  373.   which manipulate QuickTime files, you must also order the
  374.   companion product, QuickTime 1.0 Compressor Library, part
  375.   number SC4-QTCL-1.0.  The Digital Media Development Option
  376.   requires IRIX 5.2 or later (both part numbers above are
  377.   for the IRIX 5.2 versions).
  378.  
  379.   In order to use the Digital Media Development Option, you
  380.   also need to have IDO 5.2.  This is the basic IRIS
  381.   developer option, including compilers, basic C library
  382.   headers, graphics libraries, etc.
  383.  
  384.   In the United States, you can order these products by
  385.   calling Silicon Graphics toll-free at 1-800-800-SGI1
  386.   (1-800-800-7441).  If you live in a country other than the
  387.   United States, contact your nearest Silicon Graphics
  388.   office, or call one of these regional telephone numbers:
  389.  
  390.   Europe        (41) 22-798.75.25     (Geneva, CH)
  391.   North Pacific        (81) 3-5420.71.10
  392.   South Pacific        (61) 2-879.95.00
  393.   Latin America        1(415) 390.46.37
  394.   Canada        1(416) 625-4747
  395.  
  396.   Starting with IRIX 5.3 (due December 1994), the Digital
  397.   Media Development Environment will be included as a
  398.   standard piece of IDO, and you will no longer need to order
  399.   it separately.  However, the QuickTime 1.0 Compressor
  400.   Library will remain a separate product, due to SGI's
  401.   licensing agreements with Apple Computer, Inc.
  402.  
  403. ------------------------------
  404.  
  405. Subject:    -9- I can't use images exported with Moviemaker in any of my
  406.                 applications.  What image format does Moviemaker use?
  407. Date: Tue Nov 15 15:18:49 PST 1994
  408.  
  409.   Moviemaker exports images using the ImageVision FIT file format.
  410.   This library is supported by the SGI ImageVision Library and its
  411.   assorted tools.
  412.  
  413.   To convert FIT files to another file format, such as SGI rgb or TIFF,
  414.   use the imgcopy(1) program, part of the ImageVision Tools (imgtools)
  415.   product.  The ImageVision Tools are bundled with the basic IRIX
  416.   distribution.
  417.  
  418.   The following shell script will convert a batch of image files to SGI
  419.   format, using imgcopy:
  420.  
  421.   #----------------------- cut here ---------------------------
  422.   #!/bin/csh
  423.   #
  424.   # iv2sgi - convert a batch of imagevision-supported files to SGI
  425.   # .rgb format using imgcopy
  426.   #
  427.   # usage: iv2sgi <filenames>
  428.   #
  429.  
  430.   foreach image ($argv)
  431.       imgcopy -fSGI $image $image.rgb
  432.   end
  433.   #----------------------- cut here ---------------------------
  434.  
  435.   Moviemaker 2.1, to be available in the IRIX 5.3 release,
  436.   will support image export in SGI and TIFF, as well as FIT formats.
  437.  
  438.   NOTE: the IRIX 5.3 version of Moviemaker contains a bug which
  439.   prevents it from exporting images to TIFF format.  Exported images
  440.   will look all black or all white.  If this is important to you,
  441.   you can contact SGI's Technical Assistance Center and ask for a
  442.   patch release of Moviemaker to correct this problem.  (This bug
  443.   was found too late to correct for the 5.3 release).
  444.  
  445.   Finally, if you have the SGI Developer's Toolbox 4.1 CD, you can
  446.   obtain a program called Moviemaster.  Moviemaster converts between
  447.   movies and images. 32 different image formats are currently
  448.   supported. All sgi movie formats are supported.  Moviemaster can
  449.   extract frames from a movie, build a movie from frames, or image
  450.   convert from one format to another.  This program will also be
  451.   available under the name "Movieconvert" in the IRIX 5.3 release.
  452.  
  453. ------------------------------
  454.  
  455. Subject:   -10- Can anyone provide details on the SGI movie format?
  456. Date: Tue Nov 15 15:21:19 PST 1994
  457.  
  458.   The contents of the SGI movie file format are not documented.  To
  459.   create and manipulate SGI movie files in your own application, we
  460.   recommend that you use the SGI Movie Library, part of the Digital
  461.   Media Development environment.  This will not only save you work in your
  462.   application, but will ensure that your program remains compatible
  463.   with any revisions SGI makes to its movie file format.
  464.  
  465.   If you need to manipulate movie files for cross-platform purposes, we
  466.   recommend that you obtain the QuickTime Developer's Option to create
  467.   QuickTime movies which can be used cross-platform.
  468.  
  469.   See elsewhere in this FAQ for more information on both the Digital
  470.   Media Development Environment and the QuickTime Developer's Option.
  471.  
  472. ------------------------------
  473.  
  474. Subject:   -11- Can anyone provide details on the QuickTime movie
  475.                 format?
  476. Date: 20 May 1994 00:00:01 EST
  477.  
  478.   For more details on the Apple implementation of QuickTime and its
  479.   file format, see "Inside Macintosh:  QuickTime" (ISBN 0-201-62201-7)
  480.   and "Inside Macintosh:  QuickTime Components", both by Apple Computer
  481.   and published by Addison-Wesley.  The former book contains a detailed
  482.   description of the QuickTime file format.
  483.  
  484. ------------------------------
  485.  
  486. Subject:   -12- How can I convert from SGI movie format to MPEG?
  487. Date: Tue Nov 15 15:21:19 PST 1994
  488.  
  489.   There is a publically available program which can convert SGI
  490.   movie files to MPEG.  It was developed by Andreas Paul
  491.   <paula@informatik.tu-muenchen.de>.  It can be obtained from:
  492.  
  493.   ftp://ftp.rus.uni-stuttgart.de/pub/systems/sgi/animation/mv2mpeg_final.tar.gz
  494.  
  495.   It is for IRIX 5.x systems, and supports all versions of the SGI
  496.   movie file format.
  497.  
  498.   If you are using IRIX 4.0.x, then get mov2mpeg from
  499.   
  500.   ftp://ftp.gvu.gatech.edu/pub/gvu/mosaic-info/mosaic/mov2mpeg.tar.gz
  501.  
  502.  
  503.   Another way to do this is to export all of the images and
  504.   audio track from the SGI movie file by using moviemaker or makemovie,
  505.   and feed the result (a sequence of still frames) into one of the
  506.   public domain MPEG encoders available on the net.
  507.  
  508.   For more information on MPEG, and a list of places where you can
  509.   obtain MPEG encoder software, consult the MPEG Frequently Asked
  510.   Questions document. You can FTP it from
  511.  
  512.       ftp://ftp.cs.tu-berlin.de/pub/msdos/dos/graphics/mpegfa11.zip
  513.       ftp://ftp.cs.tu-berlin.de/pub/msdos/dos/graphics/mpegfa20.zip
  514.       ftp://ftp.cs.tu-berlin.de/pub/msdos/dos/graphics/mpegfa30.zip
  515.       ftp://ftp.cs.tu-berlin.de/pub/msdos/dos/graphics/mpegfa31.zip
  516.  
  517.   These documents are versions 1.1, 2.0, 3.0, and 3.1 of the MPEG FAQ
  518.   document.
  519.  
  520. ------------------------------
  521.  
  522. Subject:   -13- How can I convert from Microsoft AVI movie format to SGI
  523.                 movie format?
  524. Date: Tue Nov 15 15:23:16 PST 1994
  525.  
  526.   Currently, there is no utility available to peform this conversion.
  527.   Our current focus is on providing MPEG support in the Movie Tools, so
  528.   look for MPEG to appear before AVI support.
  529.   
  530.   XAnim is a public domain program which can play movies in the AVI
  531.   movie format.  See above for information on how to obtain this tool
  532.   via the Internet.
  533.  
  534. ------------------------------
  535.  
  536. Subject:   -14- Is there a way to bring up a movie (using movieplayer)
  537.                 within Showcase using a button click...and having it
  538.                 place itself automatically in a certain location and
  539.                 start?
  540. Date: 20 May 1994 00:00:01 EST
  541.  
  542.   Not that I know of.  When we want to play a movie, we usually
  543.   hyperscript the object to run a script, and in the script we place
  544.   the movie where we want to.  Here is an example of the script.  Call
  545.   it with the movie name as an argument.
  546.  
  547.   /usr/sbin/movieplayer -fNv -S$X1,$Y1,360,243 -l 1 -z $ZOOM $1
  548.  
  549.   Define your zoom factor ($ZOOM) and position ( X1 Y1 ) in front of
  550.   this.
  551.  
  552. ------------------------------
  553.  
  554. Subject:   -15- I am using Mosaic.  When I try to view a movie,
  555.                 movieplayer starts, but then shows a message: no movie.
  556.                 How can I make it work?
  557. Date: 20 May 1994 00:00:01 EST
  558.  
  559.   Check the following:
  560.  
  561.   - Is your system running IRIX 4.0.5?  The movieplayer in IRIX 4.0.5
  562.     does not support QuickTime movies.  You will need to upgrade to
  563.     IRIX 5.2 in order to receive QuickTime support in movieplayer.
  564.  
  565.   - Check to see that the movie file was copied over completely by
  566.     Mosaic.  Sometimes Mosaic will fail to transfer the file completely
  567.     if the network load is very high.
  568.     
  569.   - Finally, the following information submitted by Dave Babcock
  570.     (daveb@merlin.mti.sgi.com) may prove helpful:
  571.  
  572.   xmosaic includes the capability to automatically play SGI movie files
  573.   referenced by a html document.  Unfortunately, there is a "bug" which
  574.   keeps it from actually working.
  575.  
  576.   Fortunately, there is an easy fix.  Just edit the
  577.   /usr/local/lib/mosaic/mailcap file and change the following line:
  578.  
  579.     video/x-sgi-movie; movieplayer -l 1 %s; compose=moviemaker %s; \
  580.  
  581.   to be:
  582.  
  583.     video/x-sgi-movie; movieplayer -f -l 1 %s; compose=moviemaker %s; \
  584.  
  585.   that is just add the -f.
  586.  
  587.   For those who care, the problem is: mosaic copies the movie file to a local
  588.   temp file; spawns movieplayer passing it the name of the temp file; when it
  589.   sees movieplayer "terminate" mosaic nicely deletes the temp file.  But by
  590.   default movieplayer runs in background mode which mosaic interprets as it
  591.   being done and deletes the temp file just before the background task trys to
  592.   open the temp file.  The symptom is that you get the error message:
  593.  
  594.     Could not open: /usr/tmp/gaaa000-0.mv: No such file or directory
  595.     could not open movie file
  596.  
  597.   and nothing happens.
  598.  
  599. ------------------------------
  600.  
  601. Subject:   -16- I have the Galileo (or Indy Video) option, but I can't
  602.                 get Capture to use it.  When I run it, the IndyCam shows
  603.                 up.  What do I do?
  604. Date: Tue Nov 15 15:36:26 PST 1994
  605.  
  606.   When run on a system with more than one video device (for example,
  607.   an Indy with both Indy Video and the built-in IndyCam support),
  608.   Capture will use the IndyCam by default.
  609.  
  610.   To force Capture to run using Galileo or Indy Video, enter the following
  611.   command line at a shell prompt:
  612.  
  613.   capture -ev1
  614.  
  615.   Make sure that you are using Capture with IRIX 5.2 or later.
  616.  
  617. ------------------------------
  618.  
  619. Subject:   -17- I cannot get the right video to show in the Capture
  620.                 tool! I get the a video input other than the one I want
  621.                 or the screen is black.  What do I do?
  622. Date: Tue Nov 15 15:39:30 PST 1994
  623.  
  624.   Capture does not allow you to choose a signal source.  It uses the
  625.   system video settings.
  626.  
  627.   To change the system settings for signal source (and hence the signal
  628.   source for Capture), do the following:
  629.  
  630.   Run vcp or videopanel.
  631.       
  632.   Choose the device (VINO or Galileo/Indy Video) you are using.
  633.   VINO is for the Indy's built-in video (both the IndyCam and
  634.   its analog video input port).  Galileo/Indy Video is available
  635.   only if you have those optional hardware products installed.
  636.     
  637.   Then choose the input.  For VINO, this control is labeled
  638.   "Default In".  For Galileo/Indy Video, this control is labeled
  639.   "Input Source".  You may need to close other video apps
  640.   (including Capture) to do this.
  641.   
  642.   Don't forget to make sure that your camera or VCR is plugged
  643.   in correctly, and that your camera can see video.  Look into
  644.   the camera's viewfinder to make sure it is working.
  645.     
  646.   Choose "Live Video Input" off the Utilities menu to check.
  647.   The video you see here is what Capture will use.  Close this
  648.   window when you are satisfied.
  649.     
  650.   If you closed Capture, start it again (don't forget -ev1 on
  651.   the command line if you are using Galileo/Indy Video; see
  652.   above).  You should get the video you want.
  653.  
  654. ------------------------------
  655.  
  656. Subject:   -18- Why does Capture tell me to "Please Stand By", instead
  657.                 of capturing video?
  658. Date: Tue Nov 15 15:39:30 PST 1994
  659.  
  660.   Capture presents the "Please Stand By" message in two circumstances:
  661.  
  662.     1) It is processing video that you just captured.
  663.     2) Your system has video support, but Capture for some
  664.        reason cannot use it.
  665.  
  666.   Symptom 1) is normal operation for the program, and is nothing
  667.   you should worry about.
  668.  
  669.   Symptom 2) can happen for several reasons.  Check the following:
  670.  
  671.     - Make sure to close down all other applications which use
  672.       video.
  673.  
  674.     - If you are using the IndyCam, make sure it is plugged in
  675.       to the back of the machine.  Perhaps the connector may have
  676.       worked itself loose.
  677.  
  678.     - If you still get the "Please Stand By" message, reboot the
  679.       system.  It might be possible that the system video services
  680.       had become wedged for some reason; a reboot fixes this
  681.       problem.
  682.  
  683.     - Make sure that you have the signal source set correctly,
  684.       and that video shows up onscreen from the Video Control
  685.       Panel.  See above question, "I cannot get the right
  686.       video to show in the Capture tool!" for details on how
  687.       to do this.
  688.  
  689. ------------------------------
  690.  
  691. Subject:   -19- Capture just grabbed a file for me, but now I can't find
  692.                 it.  Where did Capture hide it?
  693. Date: Thu Nov 17 09:08:40 PST 1994
  694.  
  695.   Capture always places its file in the directory it was run
  696.   from.  If you ran it from the Indigo Magic desktop, odds are
  697.   that it placed the file in your home directory.
  698.  
  699.   To find out the name of the file, look in the title bar, or
  700.   choose "Settings" from the "Actions" menu and look in the
  701.   first typein blank.
  702.  
  703. ------------------------------
  704.  
  705. Subject:   -20- Under IRIX 5.3, my system has a video board and/or
  706.                 IndyCam, but Capture won't let me use it.  It just greys
  707.                 out the video options on its menu.  How can I make it
  708.                 work?
  709. Date: Thu Nov 17 09:08:40 PST 1994
  710.  
  711.   Odds are that you do not have video support installed on your system.
  712.  
  713.   Here is what you need to have installed, at a bare minimum:
  714.  
  715.   I  dmedia_eoe.sw.common 11/07/94  Common Execution Environment Components
  716.   I  dmedia_eoe.sw.compression  11/07/94  Compression Execution Environment
  717.   I  dmedia_eoe.sw.video  11/07/94  Video Execution Environment
  718.  
  719.   For IndyCam users, you also need the following:
  720.  
  721.   I  vino.sw.eoe          11/07/94  Indy Video-In Execution Software
  722.  
  723.  
  724.   For Galileo/Indy Video users, you also need the following:
  725.  
  726.   I  galileo.sw.eoe       11/07/94  Galileo Video Execution Software
  727.  
  728.  
  729.   For users with the Cosmo Compress option, you also need these
  730.   systems installed:
  731.  
  732.   I  cosmo.sw.eoe         11/07/94  Cosmo Compress Execution Software
  733.   I  dmedia_eoe.sw.utilities  11/07/94  Media Record, Playback, Convert Commands
  734.  
  735. ------------------------------
  736.  
  737. Subject:   -21- I created a movie with audio using makemovie, but the
  738.                 soundtrack plays back really garbled and choppy.  What
  739.                 do I do?
  740. Date: Thu Nov 17 09:08:40 PST 1994
  741.  
  742.   You created a movie with image and audio tracks of unequal length.
  743.   This probably happened because you chose a frame rate for the
  744.   movie which caused the image track to not match the length of the
  745.   audio track.
  746.  
  747.   There are a few solutions for this problem.  The easiest is to
  748.   choose a frame rate which makes the image track match the audio
  749.   track in length, and then use makemovie to create a new movie file
  750.   with the correct frame rate.  Another way is to pad the shorter
  751.   track (image or audio) out with additional content to match the
  752.   longer one.
  753.  
  754.   In IRIX 5.3, Moviemaker will automatically detect movies like these
  755.   and offer to correct them for you.  You can choose either of the
  756.   above methods of correction.  If you choose to pad out the shorter
  757.   track, Moviemaker adds blank material, which you can later edit.
  758.  
  759. ------------------------------
  760.  
  761. Subject:   -22- Does anyone know the maximum size a movie file that
  762.                 MovieMaker or MoviePlayer can handle?  Is it limited by
  763.                 free memory, or will it play from the hard drive?
  764. Date: Thu Nov 17 09:08:40 PST 1994
  765.  
  766.   Movieplayer plays movies from the hard drive.  Moviemaker edits
  767.   movies directly on disk.
  768.  
  769.   It is entirely possible to write an appplication which plays
  770.   movies entirely from memory (see below for details), but
  771.   Movieplayer does not support that.
  772.  
  773. ------------------------------
  774.  
  775. Subject:   -23- How do I write a program to access the pixels of a video
  776.                 frame in a movie file for image processing purposes?
  777. Date: Wed Nov 16 13:04:20 PST 1994
  778.  
  779.   Basic overview:
  780.  
  781.   You need to write the program using the Movie Library.
  782.   Open the file using mvOpenFile(3mv), get a handle to the
  783.   image track using mvFindTrackByMedium(3mv), then read the
  784.   individual image frames using mvReadFrames(3mv).
  785.  
  786.   Details on the format of image data:
  787.  
  788.   The following libmovie calls return information to describe
  789.   the format of the data returned by mvReadFrames():
  790.  
  791.   int           mvGetImageWidth      ( MVid imageTrack );
  792.   int           mvGetImageHeight     ( MVid imageTrack );
  793.   double        mvGetImageRate       ( MVid imageTrack );
  794.   const char*   mvGetImageCompression( MVid imageTrack );
  795.   DMinterlacing mvGetImageInterlacing( MVid imageTrack );
  796.   DMpacking     mvGetImagePacking    ( MVid imageTrack );
  797.   DMorientation mvGetImageOrientation( MVid imageTrack );
  798.  
  799.   For interlacing, packing and orientation, the types of
  800.   formats can be found in <dm_image.h>.
  801.  
  802.   Once you have the description of format for the data in the
  803.   image track, you can treat the buffer of untyped data
  804.   returned by mvReadFrames() as an array of pixels.  If you
  805.   need the data in a different format for your image
  806.   processing or file I/O, you will need to perform the
  807.   conversion yourself.
  808.  
  809.   For writing movies, the process works similarly.  Create a
  810.   DMparams structure that describes the format of the data
  811.   you will be writing, and pass that to mvAddTrack().  This
  812.   creates an image track with the data format you want.  Then
  813.   pass pixel data in that format to mvInsertFrames().
  814.  
  815.   Note that the Movie Library uses the MVid data type to
  816.   represent both movies, and tracks within the movies.  So
  817.   when you write a program to read or write image frames,
  818.   you will have two MVid variables - one for the movie as
  819.   a whole, and one for the image track embedded within the
  820.   movie.
  821.  
  822.   Check the Digital Media Programmer's Guide and the Movie
  823.   Library Manual pages for more details, as well as detailed
  824.   instructions on how to use these calls.
  825.  
  826. ------------------------------
  827.  
  828. Subject:   -24- How do I write a program which can write individual
  829.                 frames from a movie file out to a still image file?
  830. Date: Wed Nov 16 13:04:20 PST 1994
  831.  
  832.   Once you have managed to read individual frames from a
  833.   movie file (see above), you have several options for
  834.   writing the still frames to an image file.
  835.  
  836.   There is an image library, libimage.a, which supports
  837.   reading and writing the Silicon Graphics RGB file format.
  838.   Sample programs for using this library appear in the
  839.   4Dgifts subsystem.
  840.  
  841.   Also, you can purchase the optional SGI ImageVision
  842.   Library.  ImageVision supports output to several image file
  843.   formats, including SGI, TIFF, JFIF, and its own proprietary
  844.   FIT format.  C++ developers can add their own file
  845.   formats.  ImageVision also provides several powerful
  846.   operators for converting, procesing, and displaying image
  847.   data, and also provides hardware acceleration on SGI
  848.   platforms which support it.  Contact your SGI sales office
  849.   for more details (see above for details about where to
  850.   call).
  851.  
  852.   Finally, make sure you've installed the Movie Library
  853.   example programs.  They contain a program called
  854.   editmovie.c which writes still frames to image files, using
  855.   ImageVision to write the data to disk.
  856.  
  857. ------------------------------
  858.  
  859. Subject:   -25- I'm using the Movie Library to create QuickTime movies
  860.                 using Apple's Video compression.  When are default key-
  861.                 frames placed in a QuickTime movie made with the SGI
  862.                 movie library?
  863. Date: Wed Nov 16 13:04:20 PST 1994
  864.  
  865.   Currently, key frames are placed by default every fifth
  866.   frame.  Currently, there is no mechanism to customize
  867.   this feature.
  868.  
  869. ------------------------------
  870.  
  871. Subject:   -26- The Movie Library has calls to play a movie in a file,
  872.                 memory or a file descriptor.  But all of them seem to
  873.                 assume that the complete movie is available locally.
  874.                 How can I play a movie all of which is not available
  875.                 locally?
  876. Date: Wed Nov 16 13:04:20 PST 1994
  877.  
  878.   It's really not possible at the moment.  The Movie Library
  879.   needs access to both the header/indexing information stored
  880.   in the movie file, as well as the media data itself in
  881.   order to play the movie.
  882.  
  883.   It may be possible to do this by passing a socket
  884.   descriptor instead of a file descriptor.  There definitely
  885.   is a problem of seeking to a particular frame.  If the whole
  886.   movie is streamed in with no mvSetCurrentFrame() kind of
  887.   calls, it may work.
  888.  
  889. ------------------------------
  890.  
  891. Subject:   -27- When programming with the Movie Library, can we insert
  892.                 and delete frames from a playing movie?
  893. Date: Wed Nov 16 13:04:20 PST 1994
  894.  
  895.   Absolutely not.
  896.  
  897. ------------------------------
  898.  
  899. Subject:   -28- When writing frames to a movie with the Movie Library,
  900.                 if we fix the image track parameters, does the byte size
  901.                 of the frame remain constant across frames?
  902. Date: Wed Nov 16 13:04:20 PST 1994
  903.  
  904.   In general, no.  The compression codecs return variable size byte
  905.   counts for the frames they compress.
  906.  
  907. ------------------------------
  908.  
  909. Subject:   -29- How do I write a program to play a movie entirely from
  910.                 memory?
  911. Date: Wed Nov 16 13:04:20 PST 1994
  912.  
  913.   Typically, you open the movie file using the Unix open() system
  914.   call.  You then allocate a memory buffer as large as you need, and
  915.   use the read() system call to read the entire movie into the memory
  916.   buffer.  Then pass the pointer to this memory region to mvOpenMem()
  917.   and you're set.
  918.  
  919.   If you want to get more fancy, you can use the mpin() system call
  920.   to attempt to lock your memory buffer in physical memory, so
  921.   it does not get swapped out.  Or, you can use the mmap() system
  922.   call to associate your disk file with a memory pointer, and pass
  923.   the memory-mapped region to mvOpenMem().  This has certain advantages
  924.   which are outside the scope of this FAQ; consult the manual pages
  925.   and a good book on Unix system-call level programming for details.
  926.  
  927. ------------------------------
  928.  
  929. Subject:   -30- How do I capture movies from live video within my
  930.                 application?
  931. Date: Wed Nov 16 13:04:20 PST 1994
  932.  
  933.   In IRIX 5.2, your only choice is to write your own code using
  934.   the Audio, Video, and Movie Libraries to capture live video
  935.   and audio and save it to disk - not an easy task.
  936.  
  937.   In IRIX 5.3, your program can use the Capture Tool to do this
  938.   work.  You can invoke the Capture tool, passing it a file name
  939.   and a set of options telling it what media to capture and what
  940.   compression to use.  When the user exits the Capture Tool, you
  941.   simply open the movie file it recorded for you.  Check the
  942.   5.3 manual page for Capture for more details.
  943.  
  944. ------------------------------
  945.  
  946. Subject:   -31- How do I write a program to read and write compressed
  947.                 data to a movie file?
  948. Date: Wed Nov 16 13:04:20 PST 1994
  949.  
  950.   Check out the manual pages for the mvGetCompressedImageSize(),
  951.   mvReadCompressedImage() and mvInsertCompressedImage() calls.
  952.   They should do what you need.
  953.  
  954. ------------------------------
  955.  
  956. Subject:   -32- I want to write a program which creates a JPEG-
  957.                 compressed movie file, but I need to control the
  958.                 compression quality.  How do I do this with the Movie
  959.                 Library?
  960. Date: Wed Nov 16 13:04:20 PST 1994
  961.  
  962.   Currently, the way to do this is to create a movie file with
  963.   all the appropriate image track parameters (see above).  But instead
  964.   of simply writing frames to the movie and letting the Movie Library
  965.   automatically compress the frames for you, you handle the compression
  966.   yourself.
  967.   
  968.   To do the compression yourself, you open a Compression Library JPEG
  969.   compressor, set the quality factor, and use it to compress each
  970.   frame.  Then you write the *compressed* data to the movie file
  971.   (see above for instructions on how to do this).
  972.  
  973. ------------------------------
  974.  
  975. Subject:   -33- I want to write a program which can create a JPEG-
  976.                 compressed movie file compatible with the Cosmo Compress
  977.                 board, SGI's hardware JPEG accelerator.  How do I do
  978.                 this?
  979. Date: Wed Nov 16 13:04:20 PST 1994
  980.  
  981.   Movies which are compatible with the Cosmo Compress board
  982.   have the following characteristics:
  983.  
  984.     - must be JPEG.
  985.     - width must be video sized, even multiple of 8.
  986.     - height must be video sized, even multiple of 8.
  987.     - image frames must be interlaced.
  988.     - image frames must be oriented top to bottom.
  989.     - image packing must be RGB.
  990.  
  991.   Here is a piece of code which will check an existing image
  992.   track for you.  C programmers will hopefully forgive the use
  993.   of C++ style comments:
  994.  
  995.  
  996.   ///////////////
  997.   //
  998.   // Check to see if the video track is one of the subset of
  999.   // JPEG-encoded tracks that the cosmo board can play.
  1000.   //
  1001.   ///////////////
  1002.  
  1003.   static DMboolean isCosmoCompatible( MVid videotrack )
  1004.   {
  1005.       //
  1006.       // must be JPEG.
  1007.       //
  1008.       if ( mvGetCompression(videotrack) != IMAGE_COMP_JPEG ) {
  1009.           return DM_FALSE;
  1010.       }
  1011.  
  1012.       //
  1013.       // width must be video sized, even multiple of 8.
  1014.       //
  1015.       int width = mvGetImageWidth(videotrack);
  1016.       if ( width < 16 || width > 768 || width % 8 ) {
  1017.           return DM_FALSE;
  1018.       }
  1019.  
  1020.       //
  1021.       // height must be video sized, even multiple of 8.
  1022.       //
  1023.       int height = mvGetImageHeight(videotrack);
  1024.       if ( height < 16 || height > 2*296 || height % 8 ) {
  1025.           return DM_FALSE;
  1026.       }
  1027.  
  1028.       //
  1029.       // image frames must be interlaced.
  1030.       //
  1031.       if ( mvGetImageInterlacing(videotrack) == DM_IMAGE_NONINTERLACED) {
  1032.           return DM_FALSE;
  1033.       }
  1034.  
  1035.       //
  1036.       // image frames must be oriented top to bottom.
  1037.       //
  1038.       if ( mvGetImageOrientation(videotrack) != DM_TOP_TO_BOTTOM ) {
  1039.       return DM_FALSE;
  1040.       }
  1041.  
  1042.       //
  1043.       // image packing must be RGB.
  1044.       //
  1045.       if ( mvGetImagePacking(videotrack) != DM_PACKING_RGB ) {
  1046.           return DM_FALSE;
  1047.       }
  1048.  
  1049.       //
  1050.       // we've run the gauntlet.  dmplay can play this movie.
  1051.       //
  1052.       return DM_TRUE;
  1053.   }
  1054.  
  1055. ------------------------------
  1056.  
  1057. Subject:   -34- I simply want to create a JPEG-compressed movie which is
  1058.                 compatible with the Cosmo Compress board.  I don't want
  1059.                 to write my own program.  How do I do this?
  1060. Date: Wed Nov 16 13:04:20 PST 1994
  1061.  
  1062.   In IRIX 5.3, there are three ways to do this:
  1063.  
  1064.   1) Use the dmrecord utility to record live video from the Galileo
  1065.   or Indy Video options.
  1066.  
  1067.   2) Use the Capture tool to record live video from the Galileo
  1068.   or Indy Video options.
  1069.  
  1070.   3) Use the makemovie utility to generate a cosmo-compatible movie
  1071.   from a collection of still images.  Here is an excerpt from the
  1072.   manual page:
  1073.  
  1074.     To make an odd interlaced, 640x480, JPEG compressed movie with top-to-
  1075.     bottom orientation (of the sort that can be played back on the Cosmo
  1076.     compression board) from image files img1.rgb, img2.rgb, and img3.rgb:
  1077.  
  1078.     makemovie -o movie3.mv -c jpeg -s 640,480 -i odd -t \
  1079.              img1.rgb img2.rgb img3.rgb
  1080.  
  1081. ------------------------------
  1082.  
  1083. End of sgi/faq/movie Digest
  1084. ******************************
  1085. -- 
  1086. The SGI FAQ group                                sgi-faq@viz.tamu.edu
  1087. Finger us for info on the SGI FAQs, or look in viz.tamu.edu:/pub/sgi.
  1088.  
  1089.  
  1090.